<?php
/**
 * Created by PhpStorm.
 * User: lhl
 * Date: 2020/12/1
 * Time: 13:35
 * Features: admin模块异常处理接管类
 */

namespace app\common\exception\handle;


use app\common\exception\ExceptionHandle;
use app\common\service\platform_manage\log\ServerOptionHistoryService;
use app\common\traits\BaseServiceTrait;

class AdminExceptionHandle extends ExceptionHandle
{
    use BaseServiceTrait;

    /**
     * 自定义异常处理方法
    */
    protected function customExceptionHook(){
        $this->adminLog();
    }

    /**
     * 执行后台日志
    */
    protected function adminLog(){
        //记录后台操作日志
        $logServer = new ServerOptionHistoryService();
        $logServer->addUserLog();
    }
}